package com.song.user.controller;

import com.song.user.entity.User;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserController {
    @PostMapping("/login")
    public User login(@RequestBody User user){
        return user;
    }

    @PostMapping("/add")
    public User add(@RequestBody User user){
        return user;
    }

    @PostMapping("/delete")
    public String delete(@RequestParam String id){
        return id;
    }

    @PostMapping("/update")
    public User update(@RequestBody User user){
        return user;
    }

    @GetMapping("/get")
    public User get(@RequestParam String id){
        return new User();
    }
}
